package com.xqh.javabasic.arraysummation;
public class ArraySummation{

	public static void arraySummation(){
	
			int [] a = new int [1000];
	
			int x =0;
	
		while(x<1000){
			
			a [x] =10+10 * x;
			//System.out.println(a [x] +" :");
			x++;
		}
	
			int sum =0;
			x=0;
		while(x<1000){
			
			sum = sum +a[x];	
			//System.out.println(sum);
			x++;
			}
		}
	
	public static void main(String [] args){
	
	arraySummation();
	}
}